﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using BUSINESS_OBJECT;
namespace CRM
{
    public partial class forgotpass : System.Web.UI.Page
    {
        Custcls cust = new Custcls();
        protected void Page_Load(object sender, EventArgs e)
        {

            {


            }
        }

        protected void BTFORGET_Click(object sender, EventArgs e)
        {
            Label1.Visible = true;
            DataTable dt = cust.GetRecords(-99, "", "", "", "", -99, "", Convert.ToDateTime("1/1/1800"), -99, "", "", Tbusername.Text, "", ddlsecurityq.SelectedValue,TxtAnswer.Text , false, " and ");
            if (dt.Rows.Count > 0)
            {
                Label1.Text =dt.Rows[0]["CPASSWORD"].ToString();
                
            }
            else
                Label1.Text = "plz check The user Name OR security Question";
                                     





        }
    }
}
             

        
